function Tabs(obj) {
	UiElement.call(this, obj, "div");
	createTabsUl(obj);
	return this;
}
function createTabsUl(obj) {
	var ul = createElement('ul');
	ul.id = obj.id + "ul";
	ul.setAttribute("class", "tabsUl");
	return ul;
}
function Tab(obj) {
	var img = createItemImg(obj);
	var tmpChild = eles[obj.parentId].srcObj.children;
	UiElement.call(this, obj, "li");
	var div = createElement('div');
	div.innerText = obj.title;
	if (obj.children) {
		var ul = createItemUl(obj, isLast);
		addEles(obj.id, [ img, div, ul ]);
		this.items = [ img, ico, div, ul ];
	} else {
		addEles(obj.id, [ img, div ]);
		this.items = [ img, div ];
	}
	if (tmp != undefined) {
		obj.parentId = pid;
	}
	var pEle = this;
	return this;
}
function createItemUl(obj, isLast) {
	var ul = createElement('ul');
	ul.id = obj.id + "ul";
	if (isLast == false) {
		ul.style['background'] = 'url(./img/tree/line.gif) 0 0 repeat-y';
	}
	ul.setAttribute("class", "itemUl");
	return ul;
}
function createItemImg(obj) {
	var img = createElement('img');
	img.setAttribute("class", "itemImg");
	return img;
}
